﻿
using BW.Dto;
using BW.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.IBLL
{
    public interface IMemberBLL
    {
        Task<int> AddMember(Member member);

        /// <summary>
        /// 会员分页查询
        /// </summary>
        /// <param name="index">页码</param>
        /// <param name="size">页容量，每页显示几条</param>
        MemberPageWhereDto GetMemberPageWhere(int index,int size);


        Member GetMemberSingle(int id);

        Task<int> UpdateMember(Member member);


        /// <summary>
        /// 单个逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> LogiceDeleteMember(int id);
        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="idstring">由多个会员编号组成的字符串，如:"3,6,7,8,9"</param>
        /// <returns></returns>
        Task<int> LogiceRangeDeleteMember(string idstring);


        IQueryable<Member> GetMemberList();


        Task<int> AddRangeMember(List<Member> members);
    }
}
